package com.hdoit.ares.web.acc.modelconfig;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      yujinhui
 * @email       
 * @createtime  2017年12月25日 16:43:16
 * @comment
 */
public class WithdrawParamConfig extends ModelMetadataAttributeConfiguration{
    public WithdrawParamConfig(){
        this.setProperty("helpCode")
            .hasAttribute(new DisplayNameAttribute("助记码"));

        this.setProperty("name")
            .hasAttribute(new DisplayNameAttribute("参数名称"));

        this.setProperty("param")
            .hasAttribute(new DisplayNameAttribute("参数"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.naturalNumber));

        this.setProperty("comment")
            .hasAttribute(new DisplayNameAttribute("说明"));
        
        this.setProperty("modifyUserName")
        	.hasAttribute(new DisplayNameAttribute("修改人"));
        
        this.setProperty("modifyDate")
        	.hasAttribute(new DisplayNameAttribute("修改时间"));
        
        this.setProperty("unit")
    		.hasAttribute(new DisplayNameAttribute("计数单位"));

    }
}